import request from '@/utils/request'
import ConstTable from './ConstTable'



const api = {
    //数据加载
    GetList(query)
    {
        return request({
            url: `${ConstTable.BaseUrl}/BaseData/QmsBaseStation`,
            method: 'GET',
            data: query
        })
    },
    //新建
    Create(dataForm)
    {
        return request({
            url: `${ConstTable.BaseUrl}/BaseData/QmsBaseStation`,
            method: 'post',
            data: dataForm,
        })

    },
    //修改
    Update(dataForm)
    {
        return request({
            url: `${ConstTable.BaseUrl}/BaseData/QmsBaseStation/${dataForm.id}`,
            method: 'PUT',
            data: dataForm
        })

    },

    //删除
    Delete(id)
    {
        return request({
            url: `${ConstTable.BaseUrl}/BaseData/QmsBaseStation/${id}`,
            method: 'DELETE'
        })

    },

    //编辑加载
    GetInfo(dataForm)
    {
        return request({
            url: `${ConstTable.BaseUrl}/BaseData/QmsBaseStation/${dataForm.id}`,
            method: 'get'
        })
    },
    // 获取工厂三级菜单下拉框
    GetListOption()
    {
        return request({
            url: `${ConstTable.BaseUrl}/BaseData/QmsBaseStation/GetListOption`,
            method: 'GET'
        })
    }
}
export default api;

